package com.iman.common.support;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 针对左边树的节点类做的映射类。
 * {"href":"output\/Number.html","text":"Number","id":"Number","isClass":true,"iconCls":"icon-cls","cls":"cls","leaf":true}
 * {"id":"pkg-Ext","text":"系统管理","iconCls":"icon-pkg","cls":"package","singleClickExpand":true,"children":[],"pcount":0
 */
public class Node implements Serializable{
	public String id; //id小心点设置，最好不要设置，用value，因为id重复了，折叠的时候会有问题
	public String text; //页面显示的字符 ,支持多语言？
	public boolean leaf;
	public String href;
	public String iconCls;
	public String cls;
	public boolean singleClickExpand;
	private String qtip;
	public List<Node> children=new ArrayList<Node>();
	
	public String getQtip() {
		return qtip;
	}
	public void setQtip(String qtip) {
		this.qtip = qtip;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean isLeaf) {
		this.leaf = isLeaf;
	}
	
//	@JSON(serialize=false)
//	public Node getParent() {
//		return parent;
//	}
//	public void setParent(Node parent) {
//		this.parent = parent;
//	}
	public List<Node> getChildren() {
		return children;
	}
	public void setChildren(List<Node> findChildren) {
		this.children = findChildren;
	}
	public String getHref() {
		return href;
	}
	public void setHref(String href) {
		this.href = href;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public String getCls() {
		return cls;
	}
	public void setCls(String cls) {
		this.cls = cls;
	}
	public boolean getSingleClickExpand() {
		return singleClickExpand;
	}
	public void setSingleClickExpand(boolean singleClickExpand) {
		this.singleClickExpand = singleClickExpand;
	}
}
